package com.sangfor.ssl.l3vpn.service;

/* loaded from: classes2.dex */
public enum VpnStatus {
    VPN_STATUS_NONE(-1),
    VPN_STATUS_INIT(0),
    VPN_STATUS_CONNECTED(1),
    VPN_STATUS_RECONNECTING(2),
    VPN_STATUS_DISCONNECTED(3),
    VPN_STATUS_EXIT(4);
    
    private int m_value;

    VpnStatus(int i) {
        this.m_value = i;
    }

    public int intValue() {
        return this.m_value;
    }

    public static VpnStatus ValueOf(int i) {
        if (i != 0) {
            if (i != 1) {
                if (i != 2) {
                    if (i != 3) {
                        if (i == 4) {
                            return VPN_STATUS_EXIT;
                        }
                        throw new IllegalArgumentException("VpnStatus invalid valueof ,int is " + i);
                    }
                    return VPN_STATUS_DISCONNECTED;
                }
                return VPN_STATUS_RECONNECTING;
            }
            return VPN_STATUS_CONNECTED;
        }
        return VPN_STATUS_INIT;
    }
}
